<?php
class SucculentPlantInfoVo extends SzAbstractMySqlVo
{

    private $userId;
    private $position;
    private $seedId;
    private $level;
    private $status;
    private $harvestTime;
    private $createTime;
    private $updateTime;

    /**
     * Initialize SucculentPlantInfoVo.
     *
     * @param $userId
     * @param $position
     * @param $seedId
     * @param $level
     * @param $status
     * @param $harvestTime
     * @param $createTime
     * @param $updateTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return SucculentPlantInfoVo
     */
    public function __construct($userId, $position, $seedId, $level, $status, $harvestTime, $createTime, $updateTime, $isInsert = false) {
        $this->userId = $userId;
        $this->position = $position;
        $this->seedId = $seedId;
        $this->level = $level;
        $this->status = $status;
        $this->harvestTime = $harvestTime;
        $this->createTime = $createTime;
        $this->updateTime = $updateTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'SucculentPlantInfoVo';
        $this->ormName = 'SucculentPlantInfo';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'position' => $this->getPosition(),
            'seedId' => $this->getSeedId(),
            'level' => $this->getLevel(),
            'status' => $this->getStatus(),
            'harvestTime' => $this->getHarvestTime(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'position' => $this->getPosition(),
            'seedId' => $this->getSeedId(),
            'level' => $this->getLevel(),
            'status' => $this->getStatus(),
            'harvestTime' => $this->getHarvestTime(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getPosition(),
            $this->getSeedId(),
            $this->getLevel(),
            $this->getStatus(),
            $this->getHarvestTime(),
            $this->getCreateTime(),
            $this->getUpdateTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getPosition()
    {
        return $this->position;
    }

    public function setPosition($val)
    {
        $this->saveColumnStatus(1, $this->position);
        $this->position = $val;
    }

    public function getSeedId()
    {
        return $this->seedId;
    }

    public function setSeedId($val)
    {
        $this->saveColumnStatus(2, $this->seedId);
        $this->seedId = $val;
    }

    public function getLevel()
    {
        return $this->level;
    }

    public function setLevel($val)
    {
        $this->saveColumnStatus(3, $this->level);
        $this->level = $val;
    }

    public function getStatus()
    {
        return $this->status;
    }

    public function setStatus($val)
    {
        $this->saveColumnStatus(4, $this->status);
        $this->status = $val;
    }

    public function getHarvestTime()
    {
        return $this->harvestTime;
    }

    public function setHarvestTime($val)
    {
        $this->saveColumnStatus(5, $this->harvestTime);
        $this->harvestTime = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(6, $this->createTime);
        $this->createTime = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(7, $this->updateTime);
        $this->updateTime = $val;
    }

}